package server;

import java.util.Date;

import client.bean.Member;
import client.bean.Plan;

public class ServerUtils {
	public static Plan getMockPlan(int i) {
		Plan plan = new Plan();
		plan.setId(i);
		plan.setName("Plan" + i);
		plan.setDescription("Description" + i);
		plan.addMember(getMockMember(i));
		plan.setStartTime(new Date());

		Date endTime = new Date();
		int hours = endTime.getHours();
		endTime.setHours(hours + 1);
		plan.setEndTime(endTime);
		return plan;
	}

	public static Member getMockMember(long i) {
		Member member = new Member("Member" + i, "member" + i + "@urk.net");
		Date endTime = new Date();
		int hours = endTime.getHours();
		endTime.setHours(hours + 1);
		member.addConfirmedDates(new Date(), endTime);
		return member;
	}
}
